package com.api.volunteer.ro;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.persistence.*;
import java.util.Date;

/**
 * @author 邹宇杰
 * @email 2901570623@qq.com
 * @date 2022/4/5 17:37
 */
@Data
public class MessageRO {

    private Integer id;

    private String openid;

    private String toOpenid;

    private String msg;

    private String volunteerId;

    private String sessionId;

    private String openidUrl;

    private String toOpenidUrl;

    private String openidNickName;

    private String toOpenidNickName;

    /**
     * 创建时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    public Date createDate = new Date();

    /**
     * 最后一次更新人id
     */
    public String lastUpdateUserId;

    /**
     * 最后一次更新时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    public Date lastUpdateDate = new Date();

}
